package com.cloud.business.entity.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.cloud.business.common.CommonTimeZone;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 地图系数配置 实体
 * Copyright: Copyright (C) 2020 DLANGEL, Inc. All rights reserved.
 * Company: 大连安琪科技有限公司
 * 使用mp中的QueryWrapper方法时如果字段中有json类型，需要添加注解@TableName(autoResultMap = true)否则select时获取值为空
 *
 * @author dh
 * @since 2020-10-12 02:53:20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "SysMapCoefficient对象", description = "地图系数配置 ")
public class SysMapCoefficient implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "object_id", type = IdType.AUTO)
    @ApiModelProperty(name = "objectId", value = "base-主键")
    private Integer objectId;

    @TableLogic
    @ApiModelProperty(name = "isDeleted", value = "base-删除标志")
    private Integer isDeleted;

    @ApiModelProperty(name = "pid", value = "base-上级id")
    private Integer pid;

    @ApiModelProperty(name = "sort", value = "base-排序")
    private Integer sort;

    @ApiModelProperty(name = "createUserId", value = "base-创建人")
    private Integer createUserId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(name = "createTime", value = "base-创建时间")
    private Date createTime;

    @ApiModelProperty(name = "modificationUserId", value = "base-修改人")
    private Integer modificationUserId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(name = "modificationTime", value = "base-修改时间")
    private Date modificationTime;

    @ApiModelProperty(name = "enumColour", value = "颜色")
    private String enumColour;

    @ApiModelProperty(name = "startValue", value = "阙值起始值")
    private Integer startValue;

    @ApiModelProperty(name = "endValue", value = "阙值结束值")
    private Integer endValue;


}
